#ifndef CENTERMAINWIDGET_H
#define CENTERMAINWIDGET_H

#include <QWidget>
#include <QDebug>
#include "datamonitor.h"
#include "admindevicemanage.h"
#include "devicemanage.h"
#include "warningmanage.h"
#include "dataanalysis.h"
#include "usermanage.h"
#include "syssettings.h"
#include "logmanage.h"
#include "adminusermanage.h"
#include "sqlitemanage.h"

namespace Ui {
class centerMainWidget;
}

class centerMainWidget : public QWidget
{
    Q_OBJECT

public:
    explicit centerMainWidget(QWidget *parent = nullptr);
    ~centerMainWidget();
    void setUserInfo(QString);
    QString getRole();
signals:
     void selectStackWidget(int);
     void sendMessage(QString);
private:
    Ui::centerMainWidget *ui;
    QString user_role;
    QString UserName;
    QString PassWord;
    QString email;
    QString phone;
    QString nickname;
    DataMonitor *m_pDataMonitor;
    DeviceManage *m_pDeviceManage;
    AdminDeviceManage *m_pAdminDeviceManage;
    WarningManage *m_pWarningManage;
    DataAnalysis *m_pDataAnalysis;
    UserManage *m_pUserManage;
    SysSettings *m_pSysSettings;
    LogManage *m_pLogManage;
    AdminUserManage *m_pAdminUserManage;
    SqliteManage *m_pSqliteManage;
};

#endif // CENTERMAINWIDGET_H
